package com.lg.erp.service.impl.zhangkai;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lg.erp.entity.SCompany;
import com.lg.erp.entity.zhangkai.Relation;
import com.lg.erp.mapper.zhangkai.RelationMapper;
import com.lg.erp.service.zhangkai.IRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RelationServiceImpl extends ServiceImpl<RelationMapper,Relation> implements IRelationService{
    @Autowired
    private RelationMapper relationMapper;
    @Override
    public Page<SCompany> findChoose(Page<SCompany> page, String companyId) {
        return relationMapper.selectChoose(page,companyId);
    }

    @Override
    public List<String> findProductName(String companyId) {
        return relationMapper.findProductName(companyId);
    }

    @Override
    public List<SCompany> findQuery(String companyName, String productName,String id) {
        return relationMapper.findQuery(companyName,productName,id);
    }
}
